{extend name="public/base"/}
 {block name="content"}
  <section class="content">

              <div class="box box-default">
                <div class="box-header with-border">
                 	<h3 class="box-title">
                    <a href="{:U('Access/rule_add')}" class="btn btn-primary">添加权限</a>
                    </h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
                  </div>
                </div>
				<!-- /.box-header -->
                <!-- form start -->
                  <form action="{:U('Access/rule_add')}" method="post">
                    <div class="box-body">
                      <div class="row">
                        <div class="col-md-12">
                          <table class="table table-bordered">
                            <tr>
                                <th width="140">上级栏目:</th>
                                <td>
                                <select name="path_id" class="form-control">
                                <option value="0-0">作为一级栏目</option>
                                {volist name="pid" id="data"}
                                <option value="{$data.path}-{$data.id}">{$data.tree}</option>
                                {/volist}
                                </select>
                                </td>
                            </tr>
                            <tr>
                                <th width="140">模块名:</th>
                                <td><input class="form-control" type="text" name="module" value="admin" size="30"></td>
                            </tr>
                            <tr>
                                <th width="140">规则名:</th>
                                <td><input class="form-control" type="text" name="name" value="" size="30"></td>
                            </tr>
                            <tr>
                                <th width="140">中文名称:</th>
                                <td><input class="form-control" type="text" name="title" value="" size="30"></td>
                            </tr>
                            <tr>
                                <th width="140">TYPE:</th>
                                <td><input class="form-control" type="text" name="type" value="1" size="30"></td>
                            </tr>
                            <tr>
                                <th width="140">是否启用:</th>
                                <td>
                                是:
                                <input type="radio" name="status" checked="checked" value="1" />
                                否:
                                <input type="radio" name="status" value="0" />

                                </td>
                            </tr>
                          </table>
                        </div>
                      </div>
                    </div>
                    <div class="box-footer">
                      <button type="submit" class="btn btn-primary">确认</button>
                    </div>
                </form>
              </div>
                <!-- /.box -->

			<!-- /.col -->
  </section>
 {/block}